namespace MM.Translator.Model
{
    public class TranslationService
    {
        private static ITranslationProvider _translationProvider = null;
        private static readonly object SyncObject = new object();

        private TranslationService()
        {
            
        }

        public static ITranslationProvider Current
        {
            get
            {
                lock(SyncObject)
                {
                    return _translationProvider ?? (_translationProvider = new BingTranslationProvider());
                }
            }
        }
    }
}